package com.example.springbott.controller;

import com.example.springbott.aspactJ.OperationName;
import com.example.springbott.bean.BaseRespVo;
import com.example.springbott.bean.common.CommonData;
import com.example.springbott.bean.common.PageInfoBase;
import com.example.springbott.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/log")
public class AdminLogController {
  @Autowired
  AdminLogService adminLogService;
  /**
   * 管理日志列表
   *
   * @param pageInfoBase 页面信息基础
   * @param name         名字
   * @kerbal
   * @return {@link BaseRespVo}
   */
  @RequestMapping("list")
  @OperationName("1")
    public BaseRespVo adminLogList(PageInfoBase pageInfoBase,String name) {
      CommonData commonData = adminLogService.adminLogList(pageInfoBase, name);
     return BaseRespVo.ok(commonData);
    }



}
